import service from "@/utils/request"

import LoginWork from "@/utils/LoginWork"

// 指令包材订购查询
export const ToBeInstructed = (parms:any) => {
    return service.post<any,any>(`/PackagOrderingOperation/getNotOrderMaterialList`,parms)
}

// 勾选待订购
export const CheckTheTapeOrderJob = (parms:any) => {
    return LoginWork.post<any,any>(`/PackagOrderingOperation/getBatchProcess`,parms)
}

// 已订购明细查询
export const OrderedDetails = (parms:any) => {
    return service.post<any,any>(`/PackagOrderingOperation/getOrderedDetailsList`,parms)
}

// 订购单取消
export const PurchaseOrderCancellation = (parms:any) => {
    return LoginWork.post<any,any>(`/PackagOrderingOperation/cancelOrderedDetails`,parms)
}

// 生成订购单
export const PurchaseOrderCancellationList = (parms:any) => {
    return LoginWork.post<any,any>(`/PackagOrderingOperation/makePurchaseOrder`,parms)
}